﻿

/*----------------------------------------------------------------//
// 文件名：MoProductCheckContract.cs
// 文件功能描述：实体 MoProductCheckContract.
// 
// 创建标识：Template  ver 5.0.20090429 2010-04-14
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/
#region MoProductCheckContract
using System;
using System.Data;
namespace EQT.Model
{
	/// <summary>
	/// 业务实体MoProductCheckContract
	/// </summary>
	public partial class MoProductCheckContract:ICloneable
	{
		#region 表ProductCheckContract的字段
		private string reportId;
		private string pcaId;
		private string clientId;
		private string corpName;
		private string consigner;
		private string linkman;
		private string tel;
		private string phone;
		private string fax;
		private string addr;
		private string postcode;
		private string email;
		private decimal charge;
		private int reportStatus;
		private DateTime createTime;
		private string cuid;
		private string fidParameter;
		private string fidDdlXls;
		private string fidDdlDoc;
		private string fidDrlXls;
		private string fidDrlDoc;
		private string fidReportDoc;
		private string pcaRem;
		private string class1;
		private string mannulReportDoc;
		#endregion
		
		#region 构造函数
		public MoProductCheckContract()
		{
			              createTime=new DateTime(1900,1,1);            	    
		   
		}
		#endregion
		
		#region 拷贝构造函数

		public MoProductCheckContract(MoProductCheckContract item)
		{
			item.CopyTo(this);
		}
		#endregion
		
		#region 带参数构造函数
	    public MoProductCheckContract(string reportId,string pcaId,string clientId,string corpName,string consigner,string linkman,string tel,string phone,string fax,string addr,string postcode,string email,decimal charge,int reportStatus,DateTime createTime,string cuid,string fidParameter,string fidDdlXls,string fidDdlDoc,string fidDrlXls,string fidDrlDoc,string fidReportDoc,string pcaRem,string class1,string mannulReportDoc)
		{
		this.reportId=reportId;
		this.pcaId=pcaId;
		this.clientId=clientId;
		this.corpName=corpName;
		this.consigner=consigner;
		this.linkman=linkman;
		this.tel=tel;
		this.phone=phone;
		this.fax=fax;
		this.addr=addr;
		this.postcode=postcode;
		this.email=email;
		this.charge=charge;
		this.reportStatus=reportStatus;
		this.createTime=createTime;
		this.cuid=cuid;
		this.fidParameter=fidParameter;
		this.fidDdlXls=fidDdlXls;
		this.fidDdlDoc=fidDdlDoc;
		this.fidDrlXls=fidDrlXls;
		this.fidDrlDoc=fidDrlDoc;
		this.fidReportDoc=fidReportDoc;
		this.pcaRem=pcaRem;
		this.class1=class1;
		this.mannulReportDoc=mannulReportDoc;
		}
		#endregion
		
		#region 表ProductCheckContract的字段属性
		/// <summary>
		/// REPORT_ID
		/// </summary>
		public string ReportId
		{
			get {return reportId;}
			set {reportId=value;}
		}
		/// <summary>
		/// PCA_ID
		/// </summary>
		public string PcaId
		{
			get {return pcaId;}
			set {pcaId=value;}
		}
		/// <summary>
		///引用客户信息表的ID，但非强制
		/// </summary>
		public string ClientId
		{
			get {return clientId;}
			set {clientId=value;}
		}
		/// <summary>
		/// CORP_NAME
		/// </summary>
		public string CorpName
		{
			get {return corpName;}
			set {corpName=value;}
		}
		/// <summary>
		/// CONSIGNER
		/// </summary>
		public string Consigner
		{
			get {return consigner;}
			set {consigner=value;}
		}
		/// <summary>
		/// LINKMAN
		/// </summary>
		public string Linkman
		{
			get {return linkman;}
			set {linkman=value;}
		}
		/// <summary>
		/// TEL
		/// </summary>
		public string Tel
		{
			get {return tel;}
			set {tel=value;}
		}
		/// <summary>
		/// PHONE
		/// </summary>
		public string Phone
		{
			get {return phone;}
			set {phone=value;}
		}
		/// <summary>
		/// FAX
		/// </summary>
		public string Fax
		{
			get {return fax;}
			set {fax=value;}
		}
		/// <summary>
		/// ADDR
		/// </summary>
		public string Addr
		{
			get {return addr;}
			set {addr=value;}
		}
		/// <summary>
		/// POSTCODE
		/// </summary>
		public string Postcode
		{
			get {return postcode;}
			set {postcode=value;}
		}
		/// <summary>
		/// EMAIL
		/// </summary>
		public string Email
		{
			get {return email;}
			set {email=value;}
		}
		/// <summary>
		///实际缴纳的费用。一般这个值是小于PRICE（价格）的，因为有打折。
		/// </summary>
		public decimal Charge
		{
			get {return charge;}
			set {charge=value;}
		}
		/// <summary>
		///默认0 未知状态，无状态
		/// </summary>
		public int ReportStatus
		{
			get {return reportStatus;}
			set {reportStatus=value;}
		}
		/// <summary>
		/// CREATE_TIME
		/// </summary>
		public DateTime CreateTime
		{
			get {return createTime;}
			set {createTime=value;}
		}
		/// <summary>
		/// CUID
		/// </summary>
		public string Cuid
		{
			get {return cuid;}
			set {cuid=value;}
		}
		/// <summary>
		/// FID_PARAMETER
		/// </summary>
		public string FidParameter
		{
			get {return fidParameter;}
			set {fidParameter=value;}
		}
		/// <summary>
		/// FID_DDL_XLS
		/// </summary>
		public string FidDdlXls
		{
			get {return fidDdlXls;}
			set {fidDdlXls=value;}
		}
		/// <summary>
		/// FID_DDL_DOC
		/// </summary>
		public string FidDdlDoc
		{
			get {return fidDdlDoc;}
			set {fidDdlDoc=value;}
		}
		/// <summary>
		/// FID_DRL_XLS
		/// </summary>
		public string FidDrlXls
		{
			get {return fidDrlXls;}
			set {fidDrlXls=value;}
		}
		/// <summary>
		/// FID_DRL_DOC
		/// </summary>
		public string FidDrlDoc
		{
			get {return fidDrlDoc;}
			set {fidDrlDoc=value;}
		}
		/// <summary>
		/// FID_REPORT_DOC
		/// </summary>
		public string FidReportDoc
		{
			get {return fidReportDoc;}
			set {fidReportDoc=value;}
		}
		/// <summary>
		/// PCA_REM
		/// </summary>
		public string PcaRem
		{
			get {return pcaRem;}
			set {pcaRem=value;}
		}
		/// <summary>
		/// CLASS1
		/// </summary>
		public string Class1
		{
			get {return class1;}
			set {class1=value;}
		}
		/// <summary>
		/// MANNUL_REPORT_DOC
		/// </summary>
		public string MannulReportDoc
		{
			get {return mannulReportDoc;}
			set {mannulReportDoc=value;}
		}
		#endregion
		
		#region 辅助函数
		/// <summary>
		/// 拷贝函数
		/// </summary>
		public MoProductCheckContract CopyTo(MoProductCheckContract item)
        {
		    item.reportId=this.reportId;
		    item.pcaId=this.pcaId;
		    item.clientId=this.clientId;
		    item.corpName=this.corpName;
		    item.consigner=this.consigner;
		    item.linkman=this.linkman;
		    item.tel=this.tel;
		    item.phone=this.phone;
		    item.fax=this.fax;
		    item.addr=this.addr;
		    item.postcode=this.postcode;
		    item.email=this.email;
		    item.charge=this.charge;
		    item.reportStatus=this.reportStatus;
		    item.createTime=this.createTime;
		    item.cuid=this.cuid;
		    item.fidParameter=this.fidParameter;
		    item.fidDdlXls=this.fidDdlXls;
		    item.fidDdlDoc=this.fidDdlDoc;
		    item.fidDrlXls=this.fidDrlXls;
		    item.fidDrlDoc=this.fidDrlDoc;
		    item.fidReportDoc=this.fidReportDoc;
		    item.pcaRem=this.pcaRem;
		    item.class1=this.class1;
		    item.mannulReportDoc=this.mannulReportDoc;
			return item;
        }
		/// <summary>
		/// 克隆函数
		/// </summary>		
		public object Clone()
        {
            MoProductCheckContract mo=new MoProductCheckContract();
		    mo.ReportId=this.ReportId;
		    mo.PcaId=this.PcaId;
		    mo.ClientId=this.ClientId;
		    mo.CorpName=this.CorpName;
		    mo.Consigner=this.Consigner;
		    mo.Linkman=this.Linkman;
		    mo.Tel=this.Tel;
		    mo.Phone=this.Phone;
		    mo.Fax=this.Fax;
		    mo.Addr=this.Addr;
		    mo.Postcode=this.Postcode;
		    mo.Email=this.Email;
		    mo.Charge=this.Charge;
		    mo.ReportStatus=this.ReportStatus;
		    mo.CreateTime=this.CreateTime;
		    mo.Cuid=this.Cuid;
		    mo.FidParameter=this.FidParameter;
		    mo.FidDdlXls=this.FidDdlXls;
		    mo.FidDdlDoc=this.FidDdlDoc;
		    mo.FidDrlXls=this.FidDrlXls;
		    mo.FidDrlDoc=this.FidDrlDoc;
		    mo.FidReportDoc=this.FidReportDoc;
		    mo.PcaRem=this.PcaRem;
		    mo.Class1=this.Class1;
		    mo.MannulReportDoc=this.MannulReportDoc;
			return mo;
		}
				///<summary>
		///判断对象是否相等
		///<summary>
		public override bool Equals(object obj)
        {		 
            if (object.ReferenceEquals(this,obj))
            {
                return true;
            }
            else
            {
                MoProductCheckContract NewProductCheckContract = obj as MoProductCheckContract;
                if (NewProductCheckContract == null)
                {
                    return false;
                }
                else
                {
				if (NewProductCheckContract.ReportId==this.ReportId && NewProductCheckContract.PcaId==this.PcaId && NewProductCheckContract.ClientId==this.ClientId && NewProductCheckContract.CorpName==this.CorpName && NewProductCheckContract.Consigner==this.Consigner && NewProductCheckContract.Linkman==this.Linkman && NewProductCheckContract.Tel==this.Tel && NewProductCheckContract.Phone==this.Phone && NewProductCheckContract.Fax==this.Fax && NewProductCheckContract.Addr==this.Addr && NewProductCheckContract.Postcode==this.Postcode && NewProductCheckContract.Email==this.Email && NewProductCheckContract.Charge==this.Charge && NewProductCheckContract.ReportStatus==this.ReportStatus && NewProductCheckContract.CreateTime==this.CreateTime && NewProductCheckContract.Cuid==this.Cuid && NewProductCheckContract.FidParameter==this.FidParameter && NewProductCheckContract.FidDdlXls==this.FidDdlXls && NewProductCheckContract.FidDdlDoc==this.FidDdlDoc && NewProductCheckContract.FidDrlXls==this.FidDrlXls && NewProductCheckContract.FidDrlDoc==this.FidDrlDoc && NewProductCheckContract.FidReportDoc==this.FidReportDoc && NewProductCheckContract.PcaRem==this.PcaRem && NewProductCheckContract.Class1==this.Class1 && NewProductCheckContract.MannulReportDoc==this.MannulReportDoc)		
					{
                        return true; 
                    }
                }

            }
            return false;
            
        }
		///TODO:you should modify GetHashCode by yourself.
		public override int GetHashCode()
		{
			return base.GetHashCode();
		} 

		public override string ToString()
        {
		   return String.Format(System.Globalization.CultureInfo.InvariantCulture,"ReportId={0}/PcaId={1}/ClientId={2}/CorpName={3}/Consigner={4}/Linkman={5}/Tel={6}/Phone={7}/Fax={8}/Addr={9}/Postcode={10}/Email={11}/Charge={12}/ReportStatus={13}/CreateTime={14}/Cuid={15}/FidParameter={16}/FidDdlXls={17}/FidDdlDoc={18}/FidDrlXls={19}/FidDrlDoc={20}/FidReportDoc={21}/PcaRem={22}/Class1={23}/MannulReportDoc={24}",reportId,pcaId,clientId,corpName,consigner,linkman,tel,phone,fax,addr,postcode,email,charge,reportStatus,createTime,cuid,fidParameter,fidDdlXls,fidDdlDoc,fidDrlXls,fidDrlDoc,fidReportDoc,pcaRem,class1,mannulReportDoc);
		 
		}
		#endregion
		
		
		#region DataTable Help Function
		///<summary>
		///DataRow转换成Model
		///</summary>
		public void Row2Model(DataRow row)
		{
		    if(row["Report_ID"]!=null && row["Report_ID"]!=DBNull.Value)
			{
			    this.ReportId = (string)row["Report_ID"];
			}
			else
			{
				this.ReportId =string.Empty;
			}
		    if(row["PCA_ID"]!=null && row["PCA_ID"]!=DBNull.Value)
			{
			    this.PcaId = (string)row["PCA_ID"];
			}
			else
			{
				this.PcaId =string.Empty;
			}
		    if(row["Client_ID"]!=null && row["Client_ID"]!=DBNull.Value)
			{
			    this.ClientId = (string)row["Client_ID"];
			}
			else
			{
				this.ClientId =string.Empty;
			}
		    if(row["Corp_Name"]!=null && row["Corp_Name"]!=DBNull.Value)
			{
			    this.CorpName = (string)row["Corp_Name"];
			}
			else
			{
				this.CorpName =string.Empty;
			}
		    if(row["Consigner"]!=null && row["Consigner"]!=DBNull.Value)
			{
			    this.Consigner = (string)row["Consigner"];
			}
			else
			{
				this.Consigner =string.Empty;
			}
		    if(row["Linkman"]!=null && row["Linkman"]!=DBNull.Value)
			{
			    this.Linkman = (string)row["Linkman"];
			}
			else
			{
				this.Linkman =string.Empty;
			}
		    if(row["Tel"]!=null && row["Tel"]!=DBNull.Value)
			{
			    this.Tel = (string)row["Tel"];
			}
			else
			{
				this.Tel =string.Empty;
			}
		    if(row["Phone"]!=null && row["Phone"]!=DBNull.Value)
			{
			    this.Phone = (string)row["Phone"];
			}
			else
			{
				this.Phone =string.Empty;
			}
		    if(row["Fax"]!=null && row["Fax"]!=DBNull.Value)
			{
			    this.Fax = (string)row["Fax"];
			}
			else
			{
				this.Fax =string.Empty;
			}
		    if(row["Addr"]!=null && row["Addr"]!=DBNull.Value)
			{
			    this.Addr = (string)row["Addr"];
			}
			else
			{
				this.Addr =string.Empty;
			}
		    if(row["Postcode"]!=null && row["Postcode"]!=DBNull.Value)
			{
			    this.Postcode = (string)row["Postcode"];
			}
			else
			{
				this.Postcode =string.Empty;
			}
		    if(row["Email"]!=null && row["Email"]!=DBNull.Value)
			{
			    this.Email = (string)row["Email"];
			}
			else
			{
				this.Email =string.Empty;
			}
		    if(row["Charge"]!=null && row["Charge"]!=DBNull.Value)
			{
			    this.Charge = (decimal)row["Charge"];
			}
			else
			{
				this.Charge =0;
			}
		    if(row["Report_Status"]!=null && row["Report_Status"]!=DBNull.Value)
			{
			    this.ReportStatus = (int)row["Report_Status"];
			}
			else
			{
				this.ReportStatus =0;
			}
		    if(row["Create_Time"]!=null && row["Create_Time"]!=DBNull.Value)
			{
			    this.CreateTime = (DateTime)row["Create_Time"];
			}
			else
			{
				this.CreateTime =DateTime.MinValue;
			}
		    if(row["CUID"]!=null && row["CUID"]!=DBNull.Value)
			{
			    this.Cuid = (string)row["CUID"];
			}
			else
			{
				this.Cuid =string.Empty;
			}
		    if(row["FID_Parameter"]!=null && row["FID_Parameter"]!=DBNull.Value)
			{
			    this.FidParameter = (string)row["FID_Parameter"];
			}
			else
			{
				this.FidParameter =string.Empty;
			}
		    if(row["FID_DDL_Xls"]!=null && row["FID_DDL_Xls"]!=DBNull.Value)
			{
			    this.FidDdlXls = (string)row["FID_DDL_Xls"];
			}
			else
			{
				this.FidDdlXls =string.Empty;
			}
		    if(row["FID_DDL_Doc"]!=null && row["FID_DDL_Doc"]!=DBNull.Value)
			{
			    this.FidDdlDoc = (string)row["FID_DDL_Doc"];
			}
			else
			{
				this.FidDdlDoc =string.Empty;
			}
		    if(row["FID_DRL_Xls"]!=null && row["FID_DRL_Xls"]!=DBNull.Value)
			{
			    this.FidDrlXls = (string)row["FID_DRL_Xls"];
			}
			else
			{
				this.FidDrlXls =string.Empty;
			}
		    if(row["FID_DRL_Doc"]!=null && row["FID_DRL_Doc"]!=DBNull.Value)
			{
			    this.FidDrlDoc = (string)row["FID_DRL_Doc"];
			}
			else
			{
				this.FidDrlDoc =string.Empty;
			}
		    if(row["FID_Report_Doc"]!=null && row["FID_Report_Doc"]!=DBNull.Value)
			{
			    this.FidReportDoc = (string)row["FID_Report_Doc"];
			}
			else
			{
				this.FidReportDoc =string.Empty;
			}
		    if(row["PCA_Rem"]!=null && row["PCA_Rem"]!=DBNull.Value)
			{
			    this.PcaRem = (string)row["PCA_Rem"];
			}
			else
			{
				this.PcaRem =string.Empty;
			}
		    if(row["Class1"]!=null && row["Class1"]!=DBNull.Value)
			{
			    this.Class1 = (string)row["Class1"];
			}
			else
			{
				this.Class1 =string.Empty;
			}
		    if(row["Mannul_Report_Doc"]!=null && row["Mannul_Report_Doc"]!=DBNull.Value)
			{
			    this.MannulReportDoc = (string)row["Mannul_Report_Doc"];
			}
			else
			{
				this.MannulReportDoc =string.Empty;
			}
		}
		
		///<summary>
		///Model转换成DataRow
		///</summary>
	　　public void Model2Row(DataRow row)
		{
			row["Report_ID"] = this.ReportId;
			row["PCA_ID"] = this.PcaId;
			row["Client_ID"] = this.ClientId;
			row["Corp_Name"] = this.CorpName;
			row["Consigner"] = this.Consigner;
			row["Linkman"] = this.Linkman;
			row["Tel"] = this.Tel;
			row["Phone"] = this.Phone;
			row["Fax"] = this.Fax;
			row["Addr"] = this.Addr;
			row["Postcode"] = this.Postcode;
			row["Email"] = this.Email;
			row["Charge"] = this.Charge;
			row["Report_Status"] = this.ReportStatus;
			row["Create_Time"] = this.CreateTime;
			row["CUID"] = this.Cuid;
			row["FID_Parameter"] = this.FidParameter;
			row["FID_DDL_Xls"] = this.FidDdlXls;
			row["FID_DDL_Doc"] = this.FidDdlDoc;
			row["FID_DRL_Xls"] = this.FidDrlXls;
			row["FID_DRL_Doc"] = this.FidDrlDoc;
			row["FID_Report_Doc"] = this.FidReportDoc;
			row["PCA_Rem"] = this.PcaRem;
			row["Class1"] = this.Class1;
			row["Mannul_Report_Doc"] = this.MannulReportDoc;
		}
		#endregion
	}
}
#endregion
